import axios from "axios";
// import { config } from "vue/types/umd";

const server = axios.create({
    baseURL: "",
    timeout: 5000
})

// 请求拦截 添加请求头
server.interceptors.request.use(config => {
    return config
})

// 响应拦截
server.interceptors.response.use(res => {
    return res.data
})

export default server